<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It is a breeze. Simply tell Lumen the URIs it should respond to
| and give it the Closure to call when that URI is requested.
|
*/

$router->get('/', function () use ($router) {
    return 'Hello Welcome, Service Form Yactor';
    return $router->app->version();
});

$router->get('favicon.ico', function () {
    return '';
});

$router->group(['prefix' => 'api'], function () use ($router) {
    // show
    $router->get('user', 'UserController@index');
});

//互联网用户流量排名  用户流量概览
$router->get('range','UserController@rangeDay');
//$router->get('user',['uses'=>'UserController@index']);

